package com.zxc.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zxc.common.utils.PageUtils;
import com.zxc.gulimall.product.entity.CategoryEntity;
import com.zxc.gulimall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author zxc
 * @email 2898743173@qq.com
 * @date 2021-10-26 20:06:35
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    //知道cateLogId的完整路径
    //[父/子/孙]
    Long[] findCategoryPath(Long categoryId);

    void updateCascade(CategoryEntity category);

    //查出所有的以及分类
    List<CategoryEntity> getLevelOneCategorys();

    //查出所有分类
    Map<String, List<Catelog2Vo>> getCatalogJson();
}
